﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Rekonsult.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="EHTWebsiteProject.IndexRegister" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contentmain" runat="server">
    <div id="shopheader_red" style="background:#ff6600">
        <table style="width:100%">
           <tr>
              <td style="width:100%" colspan="2">
                 <asp:Literal ID="ltrHeaderRegister" runat="server" Text="Registrer"></asp:Literal>
              </td>                                            
           </tr>
        </table>                                   
    </div>  
    <div class="content-center">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tr>
                <td colspan="2" style="text-align:left;font-size:11px;">
                    <span class="failureNotification">
                        <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="RegisterUserValidationGroup" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbFirstName" runat="server">Fornavn</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtFirstName" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rFirstName" runat="server" ControlToValidate="txtFirstName"
                        CssClass="failureNotification" ErrorMessage="Fornavn er obligatorisk." ToolTip="Fornavn er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbLastName" runat="server">Etternavn</asp:Label>:
                </td>              
                <th>
                    <asp:TextBox ID="txtLastName" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rLastName" runat="server" ControlToValidate="txtLastName"
                        CssClass="failureNotification" ErrorMessage="Etternavn er obligatorisk." ToolTip="Etternavn er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbAge" runat="server">Alder</asp:Label>:
                </td>              
                <th>
                    <asp:TextBox ID="txtAge" runat="server" CssClass="textEntry"></asp:TextBox>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbPhone" runat="server">Telefon</asp:Label>:
                </td>
                
                <th >
                    <asp:TextBox  ID="txtPhone" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPhone" runat="server" ControlToValidate="txtPhone"
                        CssClass="failureNotification" ErrorMessage="Telefon er obligatorisk." ToolTip="Telefon er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
               
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbFax" runat="server">Faks</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtFax" runat="server" CssClass="textEntry"></asp:TextBox>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbAddress" runat="server" >Adresse</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtAddress" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rAddress" runat="server" ControlToValidate="txtAddress"
                        CssClass="failureNotification" ErrorMessage="Adresse er obligatorisk." ToolTip="Adresse er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
                
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbCity" runat="server">By</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtCity" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rCity" runat="server" ControlToValidate="txtCity"
                        CssClass="failureNotification" ErrorMessage="By er obligatorisk." ToolTip="By er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
               
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbRegion" runat="server">Region</asp:Label>:
                </td>
                <th>
                    <asp:DropDownList ID="ddlRegion" runat="server" CssClass="StyleDDList">
                    </asp:DropDownList>
                </th>
              
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbZipCode" runat="server">Postnummer</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtZipCode" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rZipCode" runat="server" ControlToValidate="txtZipCode"
                        CssClass="failureNotification" ErrorMessage="Postnummer er obligatorisk." ToolTip="Postnummer er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbEmail" runat="server">E-post</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rEmail" runat="server" ControlToValidate="txtEmail"
                        CssClass="failureNotification" ErrorMessage="E-post er obligatorisk." ToolTip="E-post er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" ValidationGroup="RegisterUserValidationGroup"
                        ControlToValidate="txtEmail" CssClass="failureNotification" ErrorMessage="Send ikke gyldig"
                        ToolTip="Send ikke gyldig" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbPassword" runat="server">Passord</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPassword" runat="server" ControlToValidate="txtPassword"
                        CssClass="failureNotification" ErrorMessage="Passord er obligatorisk." ToolTip="Passord er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbConfirmPassword" runat="server">Bekreft passord</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtConfirmPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rConfirmPassword" runat="server" ControlToValidate="txtConfirmPassword"
                        CssClass="failureNotification" ErrorMessage="Bekreft passord er obligatorisk." ToolTip="Bekreft passord er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cConfirmPassword" CssClass="failureNotification" ControlToValidate="txtConfirmPassword"
                        ControlToCompare="txtPassword" runat="server" ErrorMessage="Bekreft passord er ikke samme passord."
                        ToolTip="Bekreft passord er ikke samme passord." ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbSignature" runat="server">Signatur</asp:Label>:
                </td>
                <th>
                    
                    <asp:FileUpload ID="fuFileUrl" runat="server" CssClass="textEntry" ViewStateMode="Enabled" />
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbServiceLevel" runat="server">Service Level</asp:Label>:
                </td>
                <th>
                    <asp:DropDownList ID="ddlServiceLevel" runat="server" CssClass="StyleDDList" >
                    </asp:DropDownList>
                </th>    
            </tr>
            <tr>
                <td></td>
                <th> 
                    <asp:Button ID="btnRegister" runat="server" Text="Registrer" ValidationGroup="RegisterUserValidationGroup"
                OnClick="btnRegister_Click"  CssClass="Button" />
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <asp:Button ID="btnBack" runat="server" Text="Tilbake" CssClass="Button" 
                        Width="82px" />
                </th>
            </tr>
        </table>
    </div>
</asp:Content>
